﻿using System;
using System.Collections.Generic;
using System.Text;
using d3PrtDgn.Data.Domain.Entity;

namespace d3PrtDgn.Common.IService
{
	/// <summary>
	/// Photo manager interface
	/// </summary>
    public interface IPhotoManager
    {
		/// <summary>
		/// Uploads photo
		/// </summary>
		/// <param name="inputFile"><see cref="System.Web.HttpPostedFile"/> file</param>
		/// <param name="basePath">Base path for uploading</param>
		/// <returns>Uploaded photo</returns>
		Photo Upload(object file, string basePath);

		/// <summary>
		/// Uploads photo and creates thumbnail
		/// </summary>
		/// <param name="inputFile"><see cref="System.Web.HttpPostedFile"/> file</param>
		/// <param name="basePath">Base path for uploading</param>
		/// <param name="thumbPath">Path for thumbnails</param>
		/// <returns>Uploaded photo</returns>
		Photo Upload(object file, string basePath, string thumbPath);

		/// <summary>
		/// Uploads photo and creates thumbnail and detail
		/// </summary>
		/// <param name="inputFile"><see cref="System.Web.HttpPostedFile"/> file</param>
		/// <param name="basePath">Base path for uploading</param>
		/// <param name="thumbPath">Path for thumbnails</param>
		/// <param name="detailPath">Path for details</param>
		/// <returns>Uploaded photo</returns>
		Photo Upload(object file, string basePath, string thumbPath, string detailPath);
	}
}
